package com.woniu.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value = "菜单实体类")
public class Menu implements Serializable {
    @ApiModelProperty(value = "菜单ID")
    private Integer id ;// 菜单ID                 int not null,
    @ApiModelProperty(value = "菜单名")
    private String menuName ;//  菜单名          varchar(20) not null,
    @ApiModelProperty(value = "菜单路由")
    private String url   ;//   菜单路由            varchar(50) not null,
    @ApiModelProperty(value = "菜单父ID")
    private Integer fid  ;// 菜单父ID               int not null,
    @ApiModelProperty(value = "子菜单集合")
    List<Menu> menus;// 子菜单
}
